<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Dhara: include/main.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Dhara
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">main.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="main_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __MAIN_H__</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __MAIN_H__</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;mpi.h&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;cmath&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;sys/stat.h&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;sys/types.h&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;cuda.h&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;cuda_runtime.h&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;netcdf.h&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;Eigen/Dense&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="class_8h.html">class.h</a>&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="vertclass_8h.html">vertclass.h</a>&quot;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="saveclass_8h.html">saveclass.h</a>&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespace_eigen.html">Eigen</a>;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// User-define values                    //</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">// MPI extra definitions used              </span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="main_8h.html#a30c87e11fd7fecbcda306bb0b73ef320">   32</a></span>&#160;<span class="preprocessor">#define MPI_MASTER_RANK             0</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">// Soil layers</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="main_8h.html#a367a96ad20ec8de41dfed50904b0a07c">   35</a></span>&#160;<span class="preprocessor">#define NUM_SOIL_LAYERS             15</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">// Options for printing out                </span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="main_8h.html#aae4d4529829bf9cdd8b2812ff70ec542">   38</a></span>&#160;<span class="preprocessor">#define PRINT_NEIGHBORS             0</span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="main_8h.html#a11a25bf4c5f5a9c787764b5fb052d367">   39</a></span>&#160;<span class="preprocessor">#define PRINT_TOPOLOGY              0</span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="main_8h.html#a15d6adf66aaac47296377a40dd721966">   40</a></span>&#160;<span class="preprocessor">#define PRINT_INITIALDATA           0</span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="main_8h.html#ad733c449d4055fd00765183476566700">   41</a></span>&#160;<span class="preprocessor">#define PRINT_RESULTS               0</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">// Indicator for surrounding neighbors     </span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="main_8h.html#ab31de9bfdd44a250d67ecc8cd2cc06fd">   44</a></span>&#160;<span class="preprocessor">#define DIR_TOP                     0</span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="main_8h.html#a85ae9767b23edf40871541d23962784b">   45</a></span>&#160;<span class="preprocessor">#define DIR_RIGHT                   1</span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="main_8h.html#aa8116fa3b84c06c2419683806a072321">   46</a></span>&#160;<span class="preprocessor">#define DIR_BOTTOM                  2</span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="main_8h.html#a788d3497514ea05602fd974d7bdcdbde">   47</a></span>&#160;<span class="preprocessor">#define DIR_LEFT                    3</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">// Status value that indicates a successful operation or an error</span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="main_8h.html#a2403320c41f08e7567cb169de5db66b3">   50</a></span>&#160;<span class="preprocessor">#define STATUS_OK                   0</span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="main_8h.html#a23205a6a97096d57a247794f5e250963">   51</a></span>&#160;<span class="preprocessor">#define STATUS_ERR                  -1</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">// Extra MLCan constant</span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="main_8h.html#a030738838149f080d79d8ab81cc5e74d">   54</a></span>&#160;<span class="preprocessor">#define pinum 3.1415926535897932384626433832795028841971693993751058209749445923</span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="main_8h.html#a8bfff1124eee0869b4d7f81837b9c9aa">   55</a></span>&#160;<span class="preprocessor">#define Jmax_Bisec 100</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">// Support functions for printing &amp; checking neighbors</span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="main_8h.html#af4576165ce647221dc94903a244cd93c">   58</a></span>&#160;<span class="preprocessor">#define cudaCheckError(msg) \</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">  do { \</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">        cudaError_t __err = cudaGetLastError(); \</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor">        if (__err != cudaSuccess) { \</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">            fprintf(stderr, &quot;Fatal error: %s (%s at %s:%d)\n&quot;, \</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">                            msg, cudaGetErrorString(__err), \</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">                            __FILE__, __LINE__); \</span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">            fprintf(stderr, &quot;*** FAILED - ABORTING\n&quot;); \</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">            exit(1); \</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">        } \</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor">      } while (0)</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="main_8h.html#afecf1c2ac44bffaacd9dc7b5f83a0c97">   70</a></span>&#160;<span class="preprocessor">#define SafeCudaCall(call)          CheckCudaCall(call, #call, __FILE__, __LINE__)</span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="main_8h.html#a84f5dcf6c178909ae55cf2b9cda92f20">   71</a></span>&#160;<span class="preprocessor">#define SafeHostFree(block)         { if (block) free(block); }</span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="main_8h.html#aea018f545c7be490c24d661735e86bd7">   72</a></span>&#160;<span class="preprocessor">#define SafeDevFree(block)          { if (block) SafeCudaCall(cudaFree(block)); }</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="main_8h.html#a860ca7f6ec845b64d0103e09ebf5260a">   73</a></span>&#160;<span class="preprocessor">#define OnePrintf(allow, ...)       { if (allow) printf(__VA_ARGS__); }</span></div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="main_8h.html#afe205acf716cef1ddae916a653356bdf">   74</a></span>&#160;<span class="preprocessor">#define OneErrPrintf(allow, ...)    { if (allow) fprintf(stderr, __VA_ARGS__); }</span></div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="main_8h.html#a0b1ecd085bfbe6b1aa903940060d2050">   75</a></span>&#160;<span class="preprocessor">#define HasNeighbor(neighbors, dir) (neighbors[dir] != MPI_PROC_NULL)</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment">// GPU block and grid sizes</span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="main_8h.html#ad39af27454ac575592b323e38d94c264">   78</a></span>&#160;<span class="preprocessor">#define BSZ 256</span></div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="main_8h.html#a3a1880a5118efea1a49ec4f07d1e2d74">   79</a></span>&#160;<span class="preprocessor">#define TSZ 256</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment">// MPI support functions                         //</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a4a19481ecee412fb5ec4fd04c90adb5d">InitializeMPI</a>(<span class="keywordtype">int</span> *argc, <span class="keywordtype">char</span> ***argv, <span class="keywordtype">int</span> *rank, <span class="keywordtype">int</span> *procsize);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a24594871c51ae6b8ca2d6a8c7794d6b8">FinalizeMPI</a>(<span class="keywordtype">int</span> rank, <span class="keywordtype">int</span> procsize, <a class="code" href="classmpi_class.html">mpiClass</a> *mpiobj);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="keywordtype">int</span> <a class="code" href="main_8h.html#ad0565c33ed351121f9cbd7bf1ddfbec8">SetTopologyNetwork</a>(<span class="keywordtype">int</span> rank, <span class="keywordtype">int</span> procsize, <a class="code" href="class_project_class.html">ProjectClass</a> * &amp;project, <a class="code" href="classmpi_class.html">mpiClass</a> * &amp;mpiobj);</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">// Input and output funtions                     //</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#aa5d43bf4e37ab8cd5eebd603b72ea5f9">ParsingCommandsAndConfigurations</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv, <span class="keyword">const</span> <span class="keywordtype">char</span> * &amp;file_config, <span class="keywordtype">int</span> rank,</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                                      <span class="keywordtype">int</span> procsize, <a class="code" href="class_project_class.html">ProjectClass</a> * &amp;project, </div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                                      <a class="code" href="class_file_name_class.html">FileNameClass</a> * &amp;files, <a class="code" href="classmpi_class.html">mpiClass</a> * &amp;mpiobj);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a1fb8e2a162c61a792a4f6784ae7ceae2">LoadConfigMLCanModel</a>(<a class="code" href="class_project_class.html">ProjectClass</a> *project, <a class="code" href="class_file_name_class.html">FileNameClass</a> *files, <a class="code" href="class_switch_class.html">SwitchClass</a> *switches,</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;                          <a class="code" href="class_constant_class.html">ConstantClass</a> *constants, <a class="code" href="class_canopy_class.html">CanopyClass</a> *canopies, <a class="code" href="class_soil_class.html">SoilClass</a> *soils,</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                          <a class="code" href="class_radiation_class.html">RadiationClass</a> *radiation, <a class="code" href="class_photosynthesis_class.html">PhotosynthesisClass</a> *photosynthesis,</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                          <a class="code" href="class_respiration_class.html">RespirationClass</a> *respiration, <a class="code" href="class_stoma_conduct_class.html">StomaConductClass</a> *stomaconduct,</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                          <a class="code" href="class_micro_environment_class.html">MicroEnvironmentClass</a> *microenviron);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#ae4e7123ba69ff3d9bbd373c5f9611b3e">LoadCanopyRootDistributions</a>(<a class="code" href="class_project_class.html">ProjectClass</a> *project, <a class="code" href="class_canopy_class.html">CanopyClass</a> *canopies, </div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;                                 <a class="code" href="class_vertical_canopy_class.html">VerticalCanopyClass</a> *vertcanopies, <a class="code" href="class_soil_class.html">SoilClass</a> *soils,</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;                                 <a class="code" href="class_vertical_soil_class.html">VerticalSoilClass</a> *vertsoils);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a60d0bb17a56ea141fe870e514ef122f0">LoadForcingData</a>(<a class="code" href="class_file_name_class.html">FileNameClass</a> *files, <a class="code" href="class_canopy_class.html">CanopyClass</a> *canopies, <a class="code" href="class_time_forcing_class.html">TimeForcingClass</a> *timeforcings,</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                     <span class="keywordtype">int</span> rank, <span class="keywordtype">int</span> procsize, <span class="keywordtype">int</span> num_steps);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a94d1be3f7a08fb71cc9a747e8bc9c597">LoadFlowModelConfig</a>(<a class="code" href="class_project_class.html">ProjectClass</a> *project, <a class="code" href="class_file_name_class.html">FileNameClass</a> *files, <a class="code" href="class_overland_flow_class.html">OverlandFlowClass</a> *overland,</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                         <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> *subsurface );</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#aa916afa39225dd0fa219a35bef364027">LoadTopography</a>(<a class="code" href="class_file_name_class.html">FileNameClass</a> *files, <a class="code" href="class_overland_flow_class.html">OverlandFlowClass</a> *overland, <span class="keywordtype">int</span> rank, <span class="keywordtype">int</span> procsize);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a582f178161d87441eb604256d4da3d17">GetFileInfo</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *file_name, <span class="keyword">const</span> <span class="keywordtype">char</span> *var_name, <span class="keywordtype">int</span> ndims, <span class="keywordtype">int</span> *dim);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a01482c18a453883899e7979fc631d459">SetFlowModelConditions</a>(<a class="code" href="class_time_forcing_class.html">TimeForcingClass</a> *timeforcings, <a class="code" href="class_file_name_class.html">FileNameClass</a> *files, </div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                            <a class="code" href="class_overland_flow_class.html">OverlandFlowClass</a> *overland, <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> * &amp;subsurface, </div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;                            <span class="keywordtype">int</span> num_steps, <span class="keywordtype">int</span> rank, <span class="keywordtype">int</span> procsize, int3 globsize);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a98590f5891351f22d8c51d213bf483a7">SetMPIGPUMapping</a>(<a class="code" href="classmpi_class.html">mpiClass</a> *mpiobj, <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> * &amp;subsurface, <span class="keywordtype">int</span> procsize,</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;                      int3 globsize, int2 topolsize);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#afb3f68180a7899c43e060d4d4e091038">GatherRootDensityToMasterAndFilter</a>(<a class="code" href="class_project_class.html">ProjectClass</a> *project, <a class="code" href="class_vertical_soil_class.html">VerticalSoilClass</a> *vertsoils,</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                                        <a class="code" href="class_soil_class.html">SoilClass</a> *soils, <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> *subsurface_host,</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;                                        <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> *subsurface_dev, <span class="keywordtype">int</span> rank, </div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                                        <span class="keywordtype">int</span> procsize, MPI_Comm *cartComm);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="comment">// Numerical functions                           //</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#aa897f1b92b864e62d9e2d061b84d9524">NumericalModelKernels</a>(<span class="keywordtype">int</span> rank, <span class="keywordtype">int</span> procsize, <a class="code" href="class_file_name_class.html">FileNameClass</a> *files, <a class="code" href="class_project_class.html">ProjectClass</a> *project,</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                           <a class="code" href="classmpi_class.html">mpiClass</a> *mpiobj);</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="comment">// Device function wrappers                      //</span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> </div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;{</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a87c5ce86d74764a06a13b73dff013870">CheckCudaCall</a>(cudaError_t command, <span class="keyword">const</span> <span class="keywordtype">char</span> * commandName, <span class="keyword">const</span> <span class="keywordtype">char</span> * fileName, <span class="keywordtype">int</span> line);</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#af7e2e49efca5ebd09279daeef8dac513">PreRunningFlowModel</a>(<a class="code" href="class_project_class.html">ProjectClass</a> *project, <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> * &amp;subsurface_dev, <span class="keywordtype">int</span> rank,</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                         <span class="keywordtype">int</span> procsize, int3 globsize, MPI_Comm *cartComm);</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a06ccda7e927aad51714c254e703c7342">SaveModelResults</a>(<a class="code" href="class_project_class.html">ProjectClass</a> *project, <a class="code" href="class_overland_flow_class.html">OverlandFlowClass</a> *overland_host, </div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;                      <a class="code" href="class_overland_flow_class.html">OverlandFlowClass</a> *overland_dev, <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> *subsurface_host,</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                      <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> *subsurface_dev, int3 globsize, <span class="keywordtype">int</span> t);</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a35c9d3d3dc374ced7d701074e0b3b414">RunCoupledFlowModel</a>(<a class="code" href="class_time_forcing_class.html">TimeForcingClass</a> *timeforcings, <a class="code" href="class_overland_flow_class.html">OverlandFlowClass</a> *overland_host,</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                         <a class="code" href="class_overland_flow_class.html">OverlandFlowClass</a> *overland_dev, <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> *subsurface_host,</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;                         <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> *subsurface_dev, <a class="code" href="class_file_name_class.html">FileNameClass</a> *files,</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                         <a class="code" href="class_project_class.html">ProjectClass</a> *project, <a class="code" href="class_forcing_class.html">ForcingClass</a> * &amp;forcings, <a class="code" href="class_switch_class.html">SwitchClass</a> *switches,</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                         <a class="code" href="class_constant_class.html">ConstantClass</a> *constants, <a class="code" href="class_canopy_class.html">CanopyClass</a> *canopies, <a class="code" href="class_soil_class.html">SoilClass</a> *soils,</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                         <a class="code" href="class_radiation_class.html">RadiationClass</a> *radiation, <a class="code" href="class_photosynthesis_class.html">PhotosynthesisClass</a> *photosynthesis,</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;                         <a class="code" href="class_respiration_class.html">RespirationClass</a> *respiration, <a class="code" href="class_stoma_conduct_class.html">StomaConductClass</a> *stomaconduct,</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                         <a class="code" href="class_micro_environment_class.html">MicroEnvironmentClass</a> *microenviron, <a class="code" href="class_vertical_canopy_class.html">VerticalCanopyClass</a> *vertcanopies,</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;                         <a class="code" href="class_vertical_soil_class.html">VerticalSoilClass</a> *vertsoils, <a class="code" href="class_eigen_canopy_class.html">EigenCanopyClass</a> *eigencanopies,</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                         <a class="code" href="class_eigen_soil_class.html">EigenSoilClass</a> *eigensoils, <a class="code" href="class_output_class.html">OutputClass</a> *outmlcan, <span class="keywordtype">int</span> rank, <span class="keywordtype">int</span> procsize,</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                         int3 globsize, int3 domsize, int2 topolsize, int2 topolindex, </div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                         MPI_Comm *cartComm);</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="comment">void CopyConstantToDevice(ProjectClass *project, OverlandFlowClass * &amp;overland,</span></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="comment">                          SubsurfaceFlowClass *subsurface);</span></div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                          </div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main_8h.html#a762a56db325b0a56ade192fef8bb55b7">CopyDataToDevice</a>(<a class="code" href="class_project_class.html">ProjectClass</a> *project, <a class="code" href="class_time_forcing_class.html">TimeForcingClass</a> *timeforcings,</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                      <a class="code" href="class_overland_flow_class.html">OverlandFlowClass</a> *overland_host, <a class="code" href="class_overland_flow_class.html">OverlandFlowClass</a> *overland_dev,</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;                      <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> *subsurface_host, <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> *subsurface_dev,</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                      int3 globsize);</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="keywordtype">void</span>  <a class="code" href="main_8h.html#a106808d5ba55a54cef12059a6af7f2cc">SaveResultEntirePeriod</a>(<a class="code" href="class_project_class.html">ProjectClass</a> *project, <a class="code" href="class_canopy_class.html">CanopyClass</a> *canopies,</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                             <a class="code" href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a> *subsurface_host, <a class="code" href="class_output_class.html">OutputClass</a> *outmlcan,</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                             <span class="keywordtype">int</span> rank, <span class="keywordtype">int</span> procsize, int3 globsize, MPI_Comm *cartComm);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;}   <span class="comment">// extern &quot;C&quot;</span></div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="class_respiration_class_html"><div class="ttname"><a href="class_respiration_class.html">RespirationClass</a></div><div class="ttdef"><b>Definition:</b> class.h:371</div></div>
<div class="ttc" id="main_8h_html_a01482c18a453883899e7979fc631d459"><div class="ttname"><a href="main_8h.html#a01482c18a453883899e7979fc631d459">SetFlowModelConditions</a></div><div class="ttdeci">void SetFlowModelConditions(TimeForcingClass *timeforcings, FileNameClass *files, OverlandFlowClass *overland, SubsurfaceFlowClass *&amp;subsurface, int num_steps, int rank, int procsize, int3 globsize)</div><div class="ttdoc">Set conditions in host memory. </div><div class="ttdef"><b>Definition:</b> host.cc:195</div></div>
<div class="ttc" id="class_8h_html"><div class="ttname"><a href="class_8h.html">class.h</a></div></div>
<div class="ttc" id="class_micro_environment_class_html"><div class="ttname"><a href="class_micro_environment_class.html">MicroEnvironmentClass</a></div><div class="ttdef"><b>Definition:</b> class.h:395</div></div>
<div class="ttc" id="main_8h_html_a1fb8e2a162c61a792a4f6784ae7ceae2"><div class="ttname"><a href="main_8h.html#a1fb8e2a162c61a792a4f6784ae7ceae2">LoadConfigMLCanModel</a></div><div class="ttdeci">void LoadConfigMLCanModel(ProjectClass *project, FileNameClass *files, SwitchClass *switches, ConstantClass *constants, CanopyClass *canopies, SoilClass *soils, RadiationClass *radiation, PhotosynthesisClass *photosynthesis, RespirationClass *respiration, StomaConductClass *stomaconduct, MicroEnvironmentClass *microenviron)</div><div class="ttdoc">Loads user configurations to MLCanmodel. </div><div class="ttdef"><b>Definition:</b> io.cc:124</div></div>
<div class="ttc" id="class_canopy_class_html"><div class="ttname"><a href="class_canopy_class.html">CanopyClass</a></div><div class="ttdef"><b>Definition:</b> class.h:268</div></div>
<div class="ttc" id="main_8h_html_a106808d5ba55a54cef12059a6af7f2cc"><div class="ttname"><a href="main_8h.html#a106808d5ba55a54cef12059a6af7f2cc">SaveResultEntirePeriod</a></div><div class="ttdeci">void SaveResultEntirePeriod(ProjectClass *project, CanopyClass *canopies, SubsurfaceFlowClass *subsurface_host, OutputClass *outmlcan, int rank, int procsize, int3 globsize, MPI_Comm *cartComm)</div><div class="ttdoc">Save mean results for entire simulation period. </div><div class="ttdef"><b>Definition:</b> io.cc:959</div></div>
<div class="ttc" id="class_constant_class_html"><div class="ttname"><a href="class_constant_class.html">ConstantClass</a></div><div class="ttdef"><b>Definition:</b> class.h:244</div></div>
<div class="ttc" id="saveclass_8h_html"><div class="ttname"><a href="saveclass_8h.html">saveclass.h</a></div></div>
<div class="ttc" id="main_8h_html_ad0565c33ed351121f9cbd7bf1ddfbec8"><div class="ttname"><a href="main_8h.html#ad0565c33ed351121f9cbd7bf1ddfbec8">SetTopologyNetwork</a></div><div class="ttdeci">int SetTopologyNetwork(int rank, int procsize, ProjectClass *&amp;project, mpiClass *&amp;mpiobj)</div><div class="ttdoc">Set up topolgy network (domain decomposition) and obtained neighbors. The size of topology must be ma...</div><div class="ttdef"><b>Definition:</b> mpienv.cc:235</div></div>
<div class="ttc" id="class_overland_flow_class_html"><div class="ttname"><a href="class_overland_flow_class.html">OverlandFlowClass</a></div><div class="ttdef"><b>Definition:</b> class.h:97</div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="main_8h_html_a24594871c51ae6b8ca2d6a8c7794d6b8"><div class="ttname"><a href="main_8h.html#a24594871c51ae6b8ca2d6a8c7794d6b8">FinalizeMPI</a></div><div class="ttdeci">void FinalizeMPI(int rank, int procsize, mpiClass *mpiobj)</div><div class="ttdoc">: Close (finalize) the MPI environment </div><div class="ttdef"><b>Definition:</b> mpienv.cc:56</div></div>
<div class="ttc" id="main_8h_html_ae4e7123ba69ff3d9bbd373c5f9611b3e"><div class="ttname"><a href="main_8h.html#ae4e7123ba69ff3d9bbd373c5f9611b3e">LoadCanopyRootDistributions</a></div><div class="ttdeci">void LoadCanopyRootDistributions(ProjectClass *project, CanopyClass *canopies, VerticalCanopyClass *vertcanopies, SoilClass *soils, VerticalSoilClass *vertsoils)</div><div class="ttdoc">Load canopy and root distribution from text files specified in configuration file. If more than one vegetation, distributions for each species must be provided. </div><div class="ttdef"><b>Definition:</b> io.cc:667</div></div>
<div class="ttc" id="class_photosynthesis_class_html"><div class="ttname"><a href="class_photosynthesis_class.html">PhotosynthesisClass</a></div><div class="ttdef"><b>Definition:</b> class.h:351</div></div>
<div class="ttc" id="namespace_eigen_html"><div class="ttname"><a href="namespace_eigen.html">Eigen</a></div></div>
<div class="ttc" id="class_soil_class_html"><div class="ttname"><a href="class_soil_class.html">SoilClass</a></div><div class="ttdef"><b>Definition:</b> class.h:296</div></div>
<div class="ttc" id="main_8h_html_a06ccda7e927aad51714c254e703c7342"><div class="ttname"><a href="main_8h.html#a06ccda7e927aad51714c254e703c7342">SaveModelResults</a></div><div class="ttdeci">void SaveModelResults(ProjectClass *project, OverlandFlowClass *overland_host, OverlandFlowClass *overland_dev, SubsurfaceFlowClass *subsurface_host, SubsurfaceFlowClass *subsurface_dev, int3 globsize, int t)</div><div class="ttdoc">Copy to host and save 2D and 3D results to netcdf. </div><div class="ttdef"><b>Definition:</b> io.cc:853</div></div>
<div class="ttc" id="main_8h_html_a60d0bb17a56ea141fe870e514ef122f0"><div class="ttname"><a href="main_8h.html#a60d0bb17a56ea141fe870e514ef122f0">LoadForcingData</a></div><div class="ttdeci">void LoadForcingData(FileNameClass *files, CanopyClass *canopies, TimeForcingClass *timeforcings, int rank, int procsize, int num_steps)</div><div class="ttdoc">load forcing data from NetCDF file. </div><div class="ttdef"><b>Definition:</b> io.cc:524</div></div>
<div class="ttc" id="main_8h_html_a762a56db325b0a56ade192fef8bb55b7"><div class="ttname"><a href="main_8h.html#a762a56db325b0a56ade192fef8bb55b7">CopyDataToDevice</a></div><div class="ttdeci">void CopyDataToDevice(ProjectClass *project, TimeForcingClass *timeforcings, OverlandFlowClass *overland_host, OverlandFlowClass *overland_dev, SubsurfaceFlowClass *subsurface_host, SubsurfaceFlowClass *subsurface_dev, int3 globsize)</div></div>
<div class="ttc" id="class_eigen_canopy_class_html"><div class="ttname"><a href="class_eigen_canopy_class.html">EigenCanopyClass</a></div><div class="ttdef"><b>Definition:</b> vertclass.h:298</div></div>
<div class="ttc" id="class_output_class_html"><div class="ttname"><a href="class_output_class.html">OutputClass</a></div><div class="ttdef"><b>Definition:</b> saveclass.h:3</div></div>
<div class="ttc" id="main_8h_html_afb3f68180a7899c43e060d4d4e091038"><div class="ttname"><a href="main_8h.html#afb3f68180a7899c43e060d4d4e091038">GatherRootDensityToMasterAndFilter</a></div><div class="ttdeci">void GatherRootDensityToMasterAndFilter(ProjectClass *project, VerticalSoilClass *vertsoils, SoilClass *soils, SubsurfaceFlowClass *subsurface_host, SubsurfaceFlowClass *subsurface_dev, int rank, int procsize, MPI_Comm *cartComm)</div><div class="ttdoc">Collect root density profile from all processes to master. </div><div class="ttdef"><b>Definition:</b> host.cc:256</div></div>
<div class="ttc" id="main_8h_html_a35c9d3d3dc374ced7d701074e0b3b414"><div class="ttname"><a href="main_8h.html#a35c9d3d3dc374ced7d701074e0b3b414">RunCoupledFlowModel</a></div><div class="ttdeci">void RunCoupledFlowModel(TimeForcingClass *timeforcings, OverlandFlowClass *overland_host, OverlandFlowClass *overland_dev, SubsurfaceFlowClass *subsurface_host, SubsurfaceFlowClass *subsurface_dev, FileNameClass *files, ProjectClass *project, ForcingClass *&amp;forcings, SwitchClass *switches, ConstantClass *constants, CanopyClass *canopies, SoilClass *soils, RadiationClass *radiation, PhotosynthesisClass *photosynthesis, RespirationClass *respiration, StomaConductClass *stomaconduct, MicroEnvironmentClass *microenviron, VerticalCanopyClass *vertcanopies, VerticalSoilClass *vertsoils, EigenCanopyClass *eigencanopies, EigenSoilClass *eigensoils, OutputClass *outmlcan, int rank, int procsize, int3 globsize, int3 domsize, int2 topolsize, int2 topolindex, MPI_Comm *cartComm)</div></div>
<div class="ttc" id="class_subsurface_flow_class_html"><div class="ttname"><a href="class_subsurface_flow_class.html">SubsurfaceFlowClass</a></div><div class="ttdef"><b>Definition:</b> class.h:133</div></div>
<div class="ttc" id="main_8h_html_aa897f1b92b864e62d9e2d061b84d9524"><div class="ttname"><a href="main_8h.html#aa897f1b92b864e62d9e2d061b84d9524">NumericalModelKernels</a></div><div class="ttdeci">void NumericalModelKernels(int rank, int procsize, FileNameClass *files, ProjectClass *project, mpiClass *mpiobj)</div><div class="ttdoc">Main kernels calling numerical models including MLCan and Flow3D model. While MLCan is implemented in...</div><div class="ttdef"><b>Definition:</b> numerical.cc:513</div></div>
<div class="ttc" id="class_switch_class_html"><div class="ttname"><a href="class_switch_class.html">SwitchClass</a></div><div class="ttdef"><b>Definition:</b> class.h:205</div></div>
<div class="ttc" id="class_forcing_class_html"><div class="ttname"><a href="class_forcing_class.html">ForcingClass</a></div><div class="ttdef"><b>Definition:</b> class.h:223</div></div>
<div class="ttc" id="class_vertical_soil_class_html"><div class="ttname"><a href="class_vertical_soil_class.html">VerticalSoilClass</a></div><div class="ttdef"><b>Definition:</b> vertclass.h:202</div></div>
<div class="ttc" id="class_vertical_canopy_class_html"><div class="ttname"><a href="class_vertical_canopy_class.html">VerticalCanopyClass</a></div><div class="ttdef"><b>Definition:</b> vertclass.h:3</div></div>
<div class="ttc" id="class_eigen_soil_class_html"><div class="ttname"><a href="class_eigen_soil_class.html">EigenSoilClass</a></div><div class="ttdef"><b>Definition:</b> vertclass.h:317</div></div>
<div class="ttc" id="main_8h_html_a582f178161d87441eb604256d4da3d17"><div class="ttname"><a href="main_8h.html#a582f178161d87441eb604256d4da3d17">GetFileInfo</a></div><div class="ttdeci">void GetFileInfo(const char *file_name, const char *var_name, int ndims, int *dim)</div><div class="ttdoc">To extract information and dimension of NetCDF files. </div><div class="ttdef"><b>Definition:</b> io.cc:320</div></div>
<div class="ttc" id="main_8h_html_a4a19481ecee412fb5ec4fd04c90adb5d"><div class="ttname"><a href="main_8h.html#a4a19481ecee412fb5ec4fd04c90adb5d">InitializeMPI</a></div><div class="ttdeci">void InitializeMPI(int *argc, char ***argv, int *rank, int *procsize)</div><div class="ttdoc">Initialize MPI processes. </div><div class="ttdef"><b>Definition:</b> mpienv.cc:39</div></div>
<div class="ttc" id="main_8h_html_af7e2e49efca5ebd09279daeef8dac513"><div class="ttname"><a href="main_8h.html#af7e2e49efca5ebd09279daeef8dac513">PreRunningFlowModel</a></div><div class="ttdeci">void PreRunningFlowModel(ProjectClass *project, SubsurfaceFlowClass *&amp;subsurface_dev, int rank, int procsize, int3 globsize, MPI_Comm *cartComm)</div></div>
<div class="ttc" id="class_time_forcing_class_html"><div class="ttname"><a href="class_time_forcing_class.html">TimeForcingClass</a></div><div class="ttdef"><b>Definition:</b> class.h:74</div></div>
<div class="ttc" id="vertclass_8h_html"><div class="ttname"><a href="vertclass_8h.html">vertclass.h</a></div></div>
<div class="ttc" id="class_file_name_class_html"><div class="ttname"><a href="class_file_name_class.html">FileNameClass</a></div><div class="ttdef"><b>Definition:</b> class.h:58</div></div>
<div class="ttc" id="class_stoma_conduct_class_html"><div class="ttname"><a href="class_stoma_conduct_class.html">StomaConductClass</a></div><div class="ttdef"><b>Definition:</b> class.h:382</div></div>
<div class="ttc" id="main_8h_html_aa916afa39225dd0fa219a35bef364027"><div class="ttname"><a href="main_8h.html#aa916afa39225dd0fa219a35bef364027">LoadTopography</a></div><div class="ttdeci">void LoadTopography(FileNameClass *files, OverlandFlowClass *overland, int rank, int procsize)</div><div class="ttdoc">To load topography info from NetCDF file. Topography is only used for flow modling in GPU device thro...</div><div class="ttdef"><b>Definition:</b> io.cc:596</div></div>
<div class="ttc" id="main_8h_html_a94d1be3f7a08fb71cc9a747e8bc9c597"><div class="ttname"><a href="main_8h.html#a94d1be3f7a08fb71cc9a747e8bc9c597">LoadFlowModelConfig</a></div><div class="ttdeci">void LoadFlowModelConfig(ProjectClass *project, FileNameClass *files, OverlandFlowClass *overland, SubsurfaceFlowClass *subsurface)</div><div class="ttdoc">Loads user configurations to flow model. </div><div class="ttdef"><b>Definition:</b> io.cc:237</div></div>
<div class="ttc" id="class_radiation_class_html"><div class="ttname"><a href="class_radiation_class.html">RadiationClass</a></div><div class="ttdef"><b>Definition:</b> class.h:328</div></div>
<div class="ttc" id="main_8h_html_a98590f5891351f22d8c51d213bf483a7"><div class="ttname"><a href="main_8h.html#a98590f5891351f22d8c51d213bf483a7">SetMPIGPUMapping</a></div><div class="ttdeci">void SetMPIGPUMapping(mpiClass *mpiobj, SubsurfaceFlowClass *&amp;subsurface, int procsize, int3 globsize, int2 topolsize)</div><div class="ttdoc">Sets the MPI map used for flow model in GPU. </div><div class="ttdef"><b>Definition:</b> host.cc:216</div></div>
<div class="ttc" id="main_8h_html_a87c5ce86d74764a06a13b73dff013870"><div class="ttname"><a href="main_8h.html#a87c5ce86d74764a06a13b73dff013870">CheckCudaCall</a></div><div class="ttdeci">void CheckCudaCall(cudaError_t command, const char *commandName, const char *fileName, int line)</div></div>
<div class="ttc" id="class_project_class_html"><div class="ttname"><a href="class_project_class.html">ProjectClass</a></div><div class="ttdef"><b>Definition:</b> class.h:3</div></div>
<div class="ttc" id="classmpi_class_html"><div class="ttname"><a href="classmpi_class.html">mpiClass</a></div><div class="ttdef"><b>Definition:</b> class.h:38</div></div>
<div class="ttc" id="main_8h_html_aa5d43bf4e37ab8cd5eebd603b72ea5f9"><div class="ttname"><a href="main_8h.html#aa5d43bf4e37ab8cd5eebd603b72ea5f9">ParsingCommandsAndConfigurations</a></div><div class="ttdeci">void ParsingCommandsAndConfigurations(int argc, char **argv, const char *&amp;file_config, int rank, int procsize, ProjectClass *&amp;project, FileNameClass *&amp;files, mpiClass *&amp;mpiobj)</div><div class="ttdoc">Parse command line arguments and read configuration file. </div><div class="ttdef"><b>Definition:</b> io.cc:355</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
